import request from '@/router/axios';

export const getSmsTemplateList = (current, size, params) => {
  return request({
    url: '/api/smstemplate/list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const getSmsTemplatePage = (current, size, params) => {
  return request({
    url: '/api/smstemplate/page',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const getSmsTemplateDetail = (id) => {
  return request({
    url: '/api/smstemplate/detail',
    method: 'get',
    params: {
      id
    }
  })
}

export const removeSmsTemplate = (ids) => {
  return request({
    url: '/api/smstemplate/remove',
    method: 'post',
    params: {
      ids,
    }
  })
}

export const addSmsTemplate = (row) => {
  return request({
    url: '/api/smstemplate/submit',
    method: 'post',
    data: row
  })
}

export const updateSmsTemplate = (row) => {
  return request({
    url: '/api/smstemplate/update',
    method: 'post',
    data: row
  })
}

